from ctypes import *
lib0=CDLL('./lib0.dll')
add=lib0.add
foo=lib0.foo
print add(2,3)
s='hello'
foo(s)
print "of",s

class stdata(Structure):
	_fields_=[('x',c_int),('y',c_int)]

d=stdata()
d.x = (10);
d.y = (20);
addex1 = lib0.addEx1
addex2 = lib0.addEx2

print addex1(d)
print d.x
print addex2(byref(d))
print d.x
